package com.mge.humitureproj.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 温湿度记录表(HumitureRecord)表实体类
 *
 * @author makejava
 * @since 2025-05-22 11:43:40
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class HumitureRecord {
    //记录表id
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    //区域id和Modbus站地址
    private String regionalIdAddress;
    // 温度值
    private BigDecimal recordTemperatureValue;
    // 湿度值
    private BigDecimal recordHumidityValue;
    //记录时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date recordDate;

}

